package com.jumi.microservice.dto.reponse.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

@ApiModel("我的客户返回结果")
public class TeamItem {

    private BigDecimal defaultVal = BigDecimal.ZERO.setScale(2);

    public TeamItem() {
    }

    public TeamItem(Integer tg, Integer zc, Integer all, Integer orderCount, BigDecimal yongjin, BigDecimal sales) {
        this.tg = tg == null ? 0 : tg;
        this.zc = zc == null ? 0 : zc;
        this.all = all == null ? 0 : all;
        this.orderCount = orderCount == null ? 0 : orderCount;
        this.yongjin = yongjin == null ? defaultVal : yongjin;
        this.sales = sales == null ? defaultVal : sales;
    }

    @ApiModelProperty("推广客户")
    private Integer tg;
    @ApiModelProperty("注册客户")
    private Integer zc;
    @ApiModelProperty("全部客户")
    private Integer all;
    @ApiModelProperty("成交订单")
    private Integer orderCount;
    @ApiModelProperty("成交收益")
    private BigDecimal yongjin;
    @ApiModelProperty("累计业绩")
    private BigDecimal sales;


    public Integer getTg() {
        return tg;
    }

    public void setTg(Integer tg) {
        this.tg = tg;
    }

    public Integer getZc() {
        return zc;
    }

    public void setZc(Integer zc) {
        this.zc = zc;
    }

    public Integer getAll() {
        return all;
    }

    public void setAll(Integer all) {
        this.all = all;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public BigDecimal getYongjin() {
        return yongjin;
    }

    public void setYongjin(BigDecimal yongjin) {
        this.yongjin = yongjin;
    }

    public BigDecimal getSales() {
        return sales;
    }

    public void setSales(BigDecimal sales) {
        this.sales = sales;
    }
}
